package com.cqan.box.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cqan.entity.pk.LongEntity;

@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "TBL_PLATFORM")
//默认的缓存策略.
@SuppressWarnings("serial")
@XmlRootElement(name="platform")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Platform extends LongEntity {

	private Date ctime;
	
	/**
	 * IP地址
	 */
	private String ip;
	
	/**
	 * 端口号
	 */
	private String port;
	
	/**
	 * 密码
	 */
	private String pwd;
	
	/**
	 * 状态
	 */
	private Boolean state;
	
	/**
	 * 机顶盒串号
	 */
	private String serialNum;
	
	@Column(name="CTIME")
	public Date getCtime() {
		return ctime;
	}

	
	@Column(name="STATE")
	public Boolean getState() {
		return state;
	}



	public void setState(Boolean state) {
		this.state = state;
	}



	@Column(name="IP")
	public String getIp() {
		return ip;
	}

	@Column(name="PORT")
	public String getPort() {
		return port;
	}

	@Column(name="PWD")
	public String getPwd() {
		return pwd;
	}

	@Column(name="SERIAL_NUM")
	public String getSerialNum() {
		return serialNum;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public void setSerialNum(String serialNum) {
		this.serialNum = serialNum;
	}
	
	
	
}
